import request from '@/utils/request';

export async function getStandProductByPage (params: any) {
    return request('/api/design/getStandProductByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addStandProduct (params: any) {
    return request('/api/design/addStandProduct', {
    method: 'POST',
    data: params,
  });
}

export async function updateStandProduct (params: any) {
    return request('/api/design/updateStandProduct', {
    method: 'POST',
    data: params,
  });
}

export async function delStandProduct (params: any) {
    return request('/api/design/delStandProduct', {
    method: 'POST',
    data: params,
  });
}


export async function exportStandProduct(params: any) {
    return request('/api/design/exportStandProduct', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getStandProductByPage, addStandProduct, updateStandProduct, delStandProduct, exportStandProduct }
